package org.xshop.service;

import java.util.Map;

import org.springframework.transaction.annotation.Transactional;
import org.xshop.model.TOrder;

import top.ibase4j.core.base.BaseService;

public interface ITOrderStateService extends BaseService<TOrder> {
    public void updateWxPayReturn(Map<String, Object> param);

    /** TODO 支付宝回调 */
    @Transactional
    public void updateAliPayReturn(Map<String, Object> param);

    /** TODO 查询订单状态 */
    @Transactional
    public Map<String, Object> updateState(Long id, Long memberId);

    public TOrder updateOrderState(TOrder order);

    public TOrder updatePayResult(TOrder order, boolean isSearch);
}
